#ifndef MYRUNNABLE_H
#define MYRUNNABLE_H

#include <QObject>
#include <QRunnable>
#include <QProgressBar>
class MyRunnable : public QObject, public QRunnable
{
    Q_OBJECT
public:
    explicit MyRunnable(QProgressBar * progressBar = nullptr);
    ~MyRunnable() override;
signals:
    void updateProcess(int);
protected:
    virtual void run() override;
private:
    QProgressBar * progressBar = nullptr;

};

#endif // MYRUNNABLE_H
